<div class="title">
  <div class="left">  
    我的基本资料
  </div>
  <div class="right">
    <%= link_to '返回', user_url(@user), :method => :get, :remote => true, :class => 'crud back' %>
  </div>
</div>
<%= form_for @user,
    :url => user_url(@user),
    :method => :put,
    :remote => true do |f| %>
<dl class="grid_15">
  <dt class="grid_2">姓名：</dt>
  <dd class="grid_9"><%= f.text_field :full_name %></dd>
</dl>
<dl class="grid_15">
  <dt class="grid_2">性别：</dt>
  <dd class="grid_9">
    <%= f.radio_button :sex, :unknown, :class => :no %> <%= label :user,:sex_unknow, t(:unknown) %>
    <%= f.radio_button :sex, :man, :class => :no %> <%= label :user,:sex_man, t(:man)  %>
    <%= f.radio_button :sex, :woman, :class => :no %> <%= label :user,:sex_woman, t(:woman)  %>
  </dd>
</dl>
<dl class="grid_15">
  <dt class="grid_2">手机号：</dt>
  <dd class="grid_9"><%= f.text_field :mobile %></dd>
</dl>
<dl class="grid_15">
  <dt class="grid_2">email：</dt>
  <dd class="grid_12"><%= f.text_field :email %></dd>
</dl>
<dl class="grid_15">
  <dt class="grid_2">住址：</dt>
  <dd class="grid_12"><%= f.text_field :address %></dd>
</dl>
<div class="grid_5 form_tool">
  <%= f.submit '保存' %>
  <%= link_to '返回', user_url(@user), :method => :get, :remote => true, :class => 'button' %>
</div>
<% end %>